package com.bed.lovewithpatientbed.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class HospitalManagerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public HospitalManagerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andHospitalManagerIdIsNull() {
            addCriterion("hospital_manager_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdIsNotNull() {
            addCriterion("hospital_manager_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdEqualTo(Integer value) {
            addCriterion("hospital_manager_id =", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdNotEqualTo(Integer value) {
            addCriterion("hospital_manager_id <>", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdGreaterThan(Integer value) {
            addCriterion("hospital_manager_id >", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hospital_manager_id >=", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdLessThan(Integer value) {
            addCriterion("hospital_manager_id <", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdLessThanOrEqualTo(Integer value) {
            addCriterion("hospital_manager_id <=", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdIn(List<Integer> values) {
            addCriterion("hospital_manager_id in", values, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdNotIn(List<Integer> values) {
            addCriterion("hospital_manager_id not in", values, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdBetween(Integer value1, Integer value2) {
            addCriterion("hospital_manager_id between", value1, value2, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hospital_manager_id not between", value1, value2, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdIsNull() {
            addCriterion("dept_manager_id is null");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdIsNotNull() {
            addCriterion("dept_manager_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdEqualTo(Integer value) {
            addCriterion("dept_manager_id =", value, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdNotEqualTo(Integer value) {
            addCriterion("dept_manager_id <>", value, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdGreaterThan(Integer value) {
            addCriterion("dept_manager_id >", value, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("dept_manager_id >=", value, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdLessThan(Integer value) {
            addCriterion("dept_manager_id <", value, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdLessThanOrEqualTo(Integer value) {
            addCriterion("dept_manager_id <=", value, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdIn(List<Integer> values) {
            addCriterion("dept_manager_id in", values, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdNotIn(List<Integer> values) {
            addCriterion("dept_manager_id not in", values, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdBetween(Integer value1, Integer value2) {
            addCriterion("dept_manager_id between", value1, value2, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andDeptManagerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("dept_manager_id not between", value1, value2, "deptManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameIsNull() {
            addCriterion("hospital_manager_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameIsNotNull() {
            addCriterion("hospital_manager_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameEqualTo(String value) {
            addCriterion("hospital_manager_name =", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameNotEqualTo(String value) {
            addCriterion("hospital_manager_name <>", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameGreaterThan(String value) {
            addCriterion("hospital_manager_name >", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_manager_name >=", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameLessThan(String value) {
            addCriterion("hospital_manager_name <", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_manager_name <=", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameLike(String value) {
            addCriterion("hospital_manager_name like", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameNotLike(String value) {
            addCriterion("hospital_manager_name not like", value, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameIn(List<String> values) {
            addCriterion("hospital_manager_name in", values, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameNotIn(List<String> values) {
            addCriterion("hospital_manager_name not in", values, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameBetween(String value1, String value2) {
            addCriterion("hospital_manager_name between", value1, value2, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerNameNotBetween(String value1, String value2) {
            addCriterion("hospital_manager_name not between", value1, value2, "hospitalManagerName");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneIsNull() {
            addCriterion("hospital_manager_phone is null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneIsNotNull() {
            addCriterion("hospital_manager_phone is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneEqualTo(String value) {
            addCriterion("hospital_manager_phone =", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneNotEqualTo(String value) {
            addCriterion("hospital_manager_phone <>", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneGreaterThan(String value) {
            addCriterion("hospital_manager_phone >", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_manager_phone >=", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneLessThan(String value) {
            addCriterion("hospital_manager_phone <", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneLessThanOrEqualTo(String value) {
            addCriterion("hospital_manager_phone <=", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneLike(String value) {
            addCriterion("hospital_manager_phone like", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneNotLike(String value) {
            addCriterion("hospital_manager_phone not like", value, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneIn(List<String> values) {
            addCriterion("hospital_manager_phone in", values, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneNotIn(List<String> values) {
            addCriterion("hospital_manager_phone not in", values, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneBetween(String value1, String value2) {
            addCriterion("hospital_manager_phone between", value1, value2, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerPhoneNotBetween(String value1, String value2) {
            addCriterion("hospital_manager_phone not between", value1, value2, "hospitalManagerPhone");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdIsNull() {
            addCriterion("worker_message_id is null");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdIsNotNull() {
            addCriterion("worker_message_id is not null");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdEqualTo(Integer value) {
            addCriterion("worker_message_id =", value, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdNotEqualTo(Integer value) {
            addCriterion("worker_message_id <>", value, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdGreaterThan(Integer value) {
            addCriterion("worker_message_id >", value, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("worker_message_id >=", value, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdLessThan(Integer value) {
            addCriterion("worker_message_id <", value, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdLessThanOrEqualTo(Integer value) {
            addCriterion("worker_message_id <=", value, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdIn(List<Integer> values) {
            addCriterion("worker_message_id in", values, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdNotIn(List<Integer> values) {
            addCriterion("worker_message_id not in", values, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdBetween(Integer value1, Integer value2) {
            addCriterion("worker_message_id between", value1, value2, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andWorkerMessageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("worker_message_id not between", value1, value2, "workerMessageId");
            return (Criteria) this;
        }

        public Criteria andDealerIdIsNull() {
            addCriterion("dealer_id is null");
            return (Criteria) this;
        }

        public Criteria andDealerIdIsNotNull() {
            addCriterion("dealer_id is not null");
            return (Criteria) this;
        }

        public Criteria andDealerIdEqualTo(Integer value) {
            addCriterion("dealer_id =", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdNotEqualTo(Integer value) {
            addCriterion("dealer_id <>", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdGreaterThan(Integer value) {
            addCriterion("dealer_id >", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("dealer_id >=", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdLessThan(Integer value) {
            addCriterion("dealer_id <", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdLessThanOrEqualTo(Integer value) {
            addCriterion("dealer_id <=", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdIn(List<Integer> values) {
            addCriterion("dealer_id in", values, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdNotIn(List<Integer> values) {
            addCriterion("dealer_id not in", values, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdBetween(Integer value1, Integer value2) {
            addCriterion("dealer_id between", value1, value2, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("dealer_id not between", value1, value2, "dealerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateIsNull() {
            addCriterion("hospital_manager_date is null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateIsNotNull() {
            addCriterion("hospital_manager_date is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateEqualTo(Date value) {
            addCriterionForJDBCDate("hospital_manager_date =", value, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("hospital_manager_date <>", value, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateGreaterThan(Date value) {
            addCriterionForJDBCDate("hospital_manager_date >", value, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("hospital_manager_date >=", value, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateLessThan(Date value) {
            addCriterionForJDBCDate("hospital_manager_date <", value, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("hospital_manager_date <=", value, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateIn(List<Date> values) {
            addCriterionForJDBCDate("hospital_manager_date in", values, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("hospital_manager_date not in", values, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("hospital_manager_date between", value1, value2, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("hospital_manager_date not between", value1, value2, "hospitalManagerDate");
            return (Criteria) this;
        }

        public Criteria andSoftdelIsNull() {
            addCriterion("softdel is null");
            return (Criteria) this;
        }

        public Criteria andSoftdelIsNotNull() {
            addCriterion("softdel is not null");
            return (Criteria) this;
        }

        public Criteria andSoftdelEqualTo(Integer value) {
            addCriterion("softdel =", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelNotEqualTo(Integer value) {
            addCriterion("softdel <>", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelGreaterThan(Integer value) {
            addCriterion("softdel >", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelGreaterThanOrEqualTo(Integer value) {
            addCriterion("softdel >=", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelLessThan(Integer value) {
            addCriterion("softdel <", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelLessThanOrEqualTo(Integer value) {
            addCriterion("softdel <=", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelIn(List<Integer> values) {
            addCriterion("softdel in", values, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelNotIn(List<Integer> values) {
            addCriterion("softdel not in", values, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelBetween(Integer value1, Integer value2) {
            addCriterion("softdel between", value1, value2, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelNotBetween(Integer value1, Integer value2) {
            addCriterion("softdel not between", value1, value2, "softdel");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}